package File;

import java.io.File;

public class ListFileDemo {
    public static void main(String[] args) {
        File dir=new File("./");
        if (dir.isDirectory()) {
            File[] subs=dir.listFiles();
            System.out.println(subs.length);
            for (File sub:subs)
            {
                System.out.println(sub.getName());
            }
        }
    }
}
